<div id="load" align="center">
	<img src="loading-2.gif" /> loading
</div> <!-- 首先放一个div，用做loading效果 -->

<iframe id="demo" src="/admin/contract/indexTestOver" width="100%" height="800" frameborder="0" scrolling="no" marginheight="0"></iframe> 
<!-- src 里面放你想要的网页 http://mylaravel6/admin/contract/indexTestOver-->

<script type="text/javascript"> 

	//<![CDATA[ 

	var a = document.getElementById("demo"); 

	var b = document.getElementById("load"); 

	a.style.display = "none"; //隐藏 

	b.style.display = "block"; //显示
console.log(110);
	a.onreadystatechange = function() { 
console.log(this.readyState);
console.log(110);
		if (this.readyState == "complete") { 
			//最近才知道的。不然也写不出来。

			// 解释：一个iframe加载完毕的状态是complete,

			// 就象xmlhttp里的那个==4一样,这些都是规定的

			b.innerHTML = "load complete!"; 

			b.style.display = "none"; 

			a.style.display = "block"; 

		} 

	} 

	//]]> 

</script>